package com.firexxx.study.lock.task;

import com.firexxx.study.performancetest.task.IFixedTimeConsumeTask;

/**
 * TODO
 *
 * @author fireXXX
 * @date 2020/11/19 0:14
 **/
public class NullConsumeTask extends IFixedTimeConsumeTask {

    private long count = 0;

    @Override
    public Object runOne() {
        getTimeConsume().run();
        count++;

        return null;
    }

    @Override
    public void setCount(long count) {
        this.count = count;
    }

    @Override
    public long getCount() {
        return count;
    }

}